package com.ruoyi.material.mapper;

import java.util.List;
import com.ruoyi.material.domain.OutboundOrder;
import com.ruoyi.material.domain.MaterialInfo;

/**
 * 出库Mapper接口
 * 
 * @author ruoyi
 * @date 2022-08-25
 */
public interface OutboundOrderMapper 
{
    /**
     * 查询出库
     * 
     * @param id 出库主键
     * @return 出库
     */
    public OutboundOrder selectOutboundOrderById(Long id);

    /**
     * 查询出库列表
     * 
     * @param outboundOrder 出库
     * @return 出库集合
     */
    public List<OutboundOrder> selectOutboundOrderList(OutboundOrder outboundOrder);

    /**
     * 新增出库
     * 
     * @param outboundOrder 出库
     * @return 结果
     */
    public int insertOutboundOrder(OutboundOrder outboundOrder);

    /**
     * 修改出库
     * 
     * @param outboundOrder 出库
     * @return 结果
     */
    public int updateOutboundOrder(OutboundOrder outboundOrder);

    /**
     * 删除出库
     * 
     * @param id 出库主键
     * @return 结果
     */
    public int deleteOutboundOrderById(Long id);

    /**
     * 批量删除出库
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOutboundOrderByIds(Long[] ids);

    /**
     * 批量删除物料信息
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMaterialInfoByReceiptMaterialNos(Long[] ids);
 
    
    /**
     * 批量新增物料信息
     * 
     * @param materialInfoList 物料信息列表
     * @return 结果
     */
    public int batchMaterialInfo(List<MaterialInfo> materialInfoList);
    

    /**
     * 通过出库主键删除物料信息信息
     * 
     * @param id 出库ID
     * @return 结果
     */
    public int deleteMaterialInfoByReceiptMaterialNo(String id);

    void deleteMaterialInfoByOutboundNo(String[] outboundNo);

    int deleteOutboundOrderByOrderByIds(String[] outboundNo);

    List<OutboundOrder> selectOutboundOrderOutboundNo(Long[] outboundNo);

    void updateOutboundOrderStatus(Long id);
}
